public class People {
    private String name;
    private int age;
//两个参数的构造方法
    public People(String name, int age) {
        this.name = name;
        this.age = age;
        System.out.println(name+age);
        System.out.println("两个参数的构造方法");
        //无参构造
    }
        public People(){
            System.out.println("无参构造");
        }
        //将对象
        public People(People people){
        this.name= people.name;
        this.age=people.age;
            System.out.println(this.name+this.age);
        }

}
